package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 对回答内容的评论
 */
@Getter@Setter
public class AnswerComment extends BaseDomain {
    //回答的内容
    private Answer answer;
    //评论者
    private User comment;
    //评论时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date commentTime;
    //评论内容
    private String commentContent;
}